"use strict";
cc._RF.push(module, '58a77CfFnJIuZBJ39sQH3I7', 'Log');
// resources/Script/Ssg/Core/Log.js

"use strict";

window.Log = function () {

    var _static = {
        info: function info(str1, str2) {
            if (SystemInfo.getLogInfo() == "NONE") {
                return;
            }
            console.log(this.getNowTime() + " ssg-log [info]:  " + str1 + "  " + (str2 ? str2 : ""));
        },

        debug: function debug(str1, str2) {
            if (SystemInfo.getLogInfo() == "NONE" || SystemInfo.getLogInfo() == "INFO") {
                return;
            }
            console.log(this.getNowTime() + " ssg-log [debug]:  " + str1 + "  " + (str2 ? str2 : ""));
        },

        error: function error(str1, str2) {
            if (SystemInfo.getLogInfo() == "NONE") {
                return;
            }
            console.log(this.getNowTime() + " ssg-log [error]:  " + str1 + "  " + (str2 ? str2 : ""));
        },

        getNowTime: function getNowTime() {
            var date = new Date(+new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '');
            return date;
        }
    };
    return _static;
}();

module.exports = Log;

cc._RF.pop();